package com.example.wechat.model;

import java.time.LocalDateTime;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.example.project.annotation.Excel;
import com.example.project.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户未读消息统计对象 t_wechat_unread_messages
 * 
 * @author ruoyi
 * @date 2025-11-12
 */
public class WechatUnreadMessage extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 记录ID，主键 */
	private Long id;

	/** 用户ID */
	@Excel(name = "用户ID")
	private Long userId;

	/** 会话ID */
	@Excel(name = "会话ID")
	private Long conversationId;

	/** 未读消息数量 */
	@Excel(name = "未读消息数量")
	private int unreadCount;

	/** 最后一条消息ID */
	@Excel(name = "最后一条消息ID")
	private Long lastMessageId;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setConversationId(Long conversationId) {
		this.conversationId = conversationId;
	}

	public Long getConversationId() {
		return conversationId;
	}

	public void setUnreadCount(int unreadCount) {
		this.unreadCount = unreadCount;
	}

	public int getUnreadCount() {
		return unreadCount;
	}

	public void setLastMessageId(Long lastMessageId) {
		this.lastMessageId = lastMessageId;
	}

	public Long getLastMessageId() {
		return lastMessageId;
	}


	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("userId", getUserId()).append("conversationId", getConversationId())
				.append("unreadCount", getUnreadCount()).append("lastMessageId", getLastMessageId())
				.append("updateTime", getUpdateTime()).toString();
	}
}
